<include path="header" /> 
	<div class="m-title">
        <ul>
          <li>发件箱</li>
          <li><a href="/mailer/index">收件箱</a></li>
          <li><a href="/mailer/linkman">联系人</a></li>
          <li class="right"><a href="javascript:void(0)" onclick="mailer_receive()">收 信</a></li>
          <li class="right"><a href="/mailer/send">写 信</a></li><strong></strong>
          <li></li>
        </ul>
    </div>    
     <div class="box top-desc">
    	<div class="mailbox">
        	<ul>
        		<? foreach($mails as $mail){?>
            	<li>
                	<div class="left"><a class="star unstarred" href="#"></a></div>
                	<div class="mailhead">                    
                    	<div class="left"><?=$mail[to]?></div>
                        <div class="right font-little"><?=date('Y-m-d H:m:s',$mail[mktime])?></div>
                        <div class="clear"></div>
                    </div>
                    <div class="mailcontent-s">
                     <h6><a href="/mailer/viewsendmail?mailid=<?=$mail[mailer_outbox_id]?>">
                     <? if($mail[subject]==''){?>
                     	无主题
                     <? }else{?>
                     	<?=$mail[subject]?>
                     <? }?>
                     </a></h6>
                    </div>
                </li> 
                <? }?>                 
            </ul>
        </div>
        <div class="pagefooter right">
       		 总共<?=$totalcount?>条，共<?=$totalpage?>页，当前第<?=$pagenum?>页，
            <a href="/mailer/sendbox?pagesize=10&pagenum=1);">首页</a>
            <a href="/mailer/sendbox?pagesize=10&pagenum=<?=$pagenum-1?>">上一页</a>
            <a href="/mailer/sendbox?pagesize=10&pagenum=<?=$pagenum+1?>">下一页</a>
            <a href="/mailer/sendbox?pagesize=10&pagenum=<?=$totalpage?>">末页</a>
        </div> 
    </div>  
<include path="footer" />		 